﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace OAS.Core
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("Sys_Role")]
    public partial class Role
    {
           public Role(){

            this.Role_Id =Guid.NewGuid();

           }
           /// <summary>
           /// Desc:
           /// Default:newid()
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public Guid Role_Id {get;set;}

           /// <summary>
           /// Desc:上级
           /// Default:
           /// Nullable:True
           /// </summary>           
           public Guid? ParentId {get;set;}

           /// <summary>
           /// Desc:职位
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string RoleName {get;set;}

           /// <summary>
           /// Desc:是否启用
           /// Default:
           /// Nullable:False
           /// </summary>           
           public int Enable {get;set;}

    }
}
